{extend name="common:code" /}
{block name="script"}
<script>
$(function(){
	window.setInterval(function(){
		$.post(
			"{:url('/get_order_status')}",
			{
				out_trade_no:"{$trade_no}"
			},
			function(d){
				if(d=='pay_suc'){
					//alert('付款成功');									
					
					parent.window.location ="{:url('/pay_success')}";
					//parent.window.art.dialog.list['pay'].close();
				}
			}
		);
	}, 2000); 
});	
</script>
{/block}